4f3c15eb042969c3945a48867eeded454893c0c6,core/java/src/net/i2p/client/naming/NamingService.java,NamingService,createInstance,#I2PAppContext#,428

Before Change


            instance = (NamingService)con.newInstance(new Object[] { context });
        } catch (Exception ex) {
            Log log = context.logManager().getLog(NamingService.class);
            log.error("Cannot load naming service " + impl + ", only .b32.i2p lookups will succeed", ex);
            instance = new DummyNamingService(context); // fallback
        }
        return instance;

After Change


            Log log = context.logManager().getLog(NamingService.class);
            // Blockfile may throw RuntimeException but HostsTxt won't
            if (!impl.equals(BACKUP_IMPL)) {
                log.error("Cannot load naming service " + impl + ", using HostsTxtNamingService", ex);
                instance = new HostsTxtNamingService(context);
            } else {
                log.error("Cannot load naming service " + impl + ", only .b32.i2p lookups will succeed", ex);
                instance = new DummyNamingService(context);
            }
        }